public class AtomDateTime {

	private Datetime theDateTime;

	public AtomDateTime(Datetime dt) {
		theDateTime = dt;
	}
	
	public AtomDateTime(String atomDateString) {
		this(dateTime.valueOf(atomDateString.replace('T', ' ')));
	}
	public String getApexString() {
		return theDateTime.format('yyyy-MM-dd mm:hh:ss z');
	}
	
	public String getAtomString() {
		return theDateTime.format('yyyy-MM-dd mm:hh:ssz').replace(' ', 'T');
	}
	
	public DateTime getDateTime() {
		return theDateTime;
	}
		
}